<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="{% url 'add' %}">添加</a>
<a href="{% url 'search' %}">搜索</a>
<br>
展示所有:
{% for foo in Nowpage %}
    题目:{{ foo.title }}
    类型:{{ foo.Qtype }}
    A: {{ foo.option1 }}
    B: {{ foo.option2 }}
    C: {{ foo.option3 }}
    D: {{ foo.option4 }}
    答案:{{ foo.answer }}
    创建时间:{{ foo.CreatTime }}
    更新时间:{{ foo.NowTime }}
    <a href="{% url 'dele' foo.id %}">删除</a>
    <a href="{% url 'amend' foo.id%}">修改</a>
    <br>
{% endfor %}
{% if currentpage > 1 %}
    <a href="{% url 'show' %}?pag={{ last_page }}">上一页</a>
{% endif %}
<b>当前页&nbsp;&nbsp;第{{ currentpage }}页</b>
{% if currentpage < max_page %}
    <a href="{% url 'show' %}?pag={{ next_page }}">下一页</a>
{% endif %}
</body>
</html>